$(() => {
    let faultRateBar_cc = echarts.init(document.getElementById('faultRateBar_cc'));
    option_cc = {
        legend: {
            data: ['故障', '正常'],
            // x:'200px',
            // y:'480px',
            // selected:false
        },
        color:['#f8b811','#0886e2'],
        series: [
            {
                type: 'pie',
                radius: '55%',
                center: ['50%', '60%'],
                data: [
                    {value: 70, name: '正常'},
                    {value: 30, name: '故障'},
                ],
                emphasis: {
                    itemStyle: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };
    faultRateBar_cc.setOption(option_cc);
});